.underline.index {
  left: 15px;
  width: 37px;
}
.underline.top {
  left: 81px;
  width: 37px;
}
.underline.none {
  left: 0;
  width: 0;
}
/* 网页主体结构 */
.main {
  display: flex;
  justify-content: space-between;
  margin: 40px 0 40px 50%;
  transform: translate(-50%, 0);
  width: 95%;
  max-width: 1100px;
}
.news-content {
  margin: 10px;
  width: calc(70% - 20px);
}
.side-bar {
  margin: 10px;
  width: calc(30% - 20px);
}
.author-info {
  display: flex;
  justify-content: left;
  padding: 15px 0;
}
.top-info {
  display: flex;
  justify-content: space-between;
}
.author-name {
  font-weight: 600;
  font-size: 18px;
}
/* 评论区下的 */
.layer .author-name {
  font-size: 24px;
}
.time {
  font-size: 13px;
}
.author-info .author-icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  margin-right: 10px;
}
.author-info .author-icon img {
  width: 40px;
  height: 40px;
  border-radius: 20px;
}
.author-info > div {
  position: relative;
}
.icon-replace {
  margin-left: 50%;
  margin-bottom: 10px;
  transform: translate(-50%,0);
  width: 40px;
  height: 40px;
}
.icon-replace img {
  width: 40px;
}
.news, .all-top-news {
  margin: 0 10px 10px 10px;
  padding: 25px;
  border-radius: 3px;
  background-color: rgb(45, 37, 67);
}
.news {
  width: 100%;
}
.all-top-news {
  margin-left: 10%;
  width: 90%;
}
.top-five-news {
  cursor: pointer;
}
.rank {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  margin: 10px;
  line-height: 40px;
  text-align: center;
  border-radius: 5px;
  border: 1px #fff solid;
}
.news p {
  overflow-y: auto;
}
.side-bar-content {
  margin-bottom: 10px;
  padding: 25px;
  border-radius: 3px;
  background-color: rgb(45, 37, 67);
}
.item-horizontal {
  display: flex;
  justify-content: space-around;
  padding-bottom: 20px;
}
.item-horizontal > div {
  text-align: center;
}
.operation {
  display: flex;
  justify-content: space-between;
  padding-top: 25px;
}
.operation > div {
  width: 50%;
  text-align: center;
}
.create-news {
  width: 600px;
  margin-left: calc(50% - 300px);
  margin-top: 10%;
  padding: 25px 10px;
  background-color: rgb(45, 37, 67);
}
.create-news .close, .create-reply .close {
  width: 100%;
  padding: 0 20px;
  text-align: right;
  cursor: pointer;
}
.create-news-main {
  display: flex;
  justify-content: space-around;
  padding-top: 20px;
}
.user-icon {
  width: 60px;
}
.user-icon img {
  width: 40px;
  height: 40px;
  border-radius: 20px;
}
.form {
  width: 490px;
  padding: 10px;
}
.form textarea {
  width: 100%;
  height: 93px;
  padding: 5px;
  resize: none;
  outline: none;
  background-color: rgb(45, 37, 67);
  border: none;
  border-bottom: 1px rgb(255,255,255,.4) solid;
  font-size: 20px;
  color: #fff;
}
.form input[type='text'] {
  width: 100%;
  padding: 5px;
  background-color: rgb(45, 37, 67);
  border: none;
  border-bottom: 1px rgb(255,255,255,.4) solid;
  font-size: 20px;
  color: #fff;
}
.form .operation {
  padding: 10px 0;
}
.top-news > div {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1; 
  margin: 20px 0;
}
.up {
  display: flex;
  justify-content: space-between;
}
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  width: 100%;
}
.pagination span {
  width: 40px;
  height: 40px;
  margin: 5px;
  line-height: 40px;
  text-align: center;
  border-radius: 5px;
  border: 1px #fff solid;
  cursor: pointer;
}
.pagination span.current-page {
  background-color: #0f9cf5;
  border: none;
}
.loading {
  width: 100%;
  text-align: center;
}
.like-btn, .comment-btn, .dislike-btn, .comment-open-btn {
  cursor: pointer;
}
.like-btn {
  color: #fff;
}
.dislike-btn {
  color: red;
}
.comment-open-btn {
  color: #0f9cf5
}
.comment {
  padding: 20px 0;
}
.comment textarea {
  width: 100%;
  height: 93px;
  resize: none;
  outline: none;
  padding: 5px 20px;
  background-color: rgb(36, 28, 56);
  border: none;
  border-radius: 5px;
  border-bottom: 1px rgb(255,255,255,.4) solid;
  font-size: 16px;
  color: #fff;
}
.comment .post {
  display: flex;
  justify-content: right;
  padding: 5px 20px;
}
.comment-info {
  display: flex;
  justify-content: left;
}
.comment-info .author-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 15px;
}
.create-reply {
  width: 700px;
  margin-left: calc(50% - 350px);
  margin-top: 5%;
  padding: 25px 10px;
  background-color: rgb(45, 37, 67);
}
.comment-reply {
  padding: 10px 30px;
}
.comment-reply .form {
  padding: 20px 30px;
  width: auto;
}
.comment-reply p {
  font-size: 18px;
}
.reply {
  margin: 0;
  padding: 10px;
}
.reply > div {
  margin: 3px 0;
  padding: 0 20px;
  border-left: 1px #fff solid;
}
.sub-reply > div {
  margin: 3px 0;
}
.reply-btn, .delete-btn {
  display: none;
  margin-left: 20px;
  cursor: pointer;
}
/* .reply > div.reply-content:hover .reply-btn, .sub-reply > div:hover .reply-btn, .comment-info .text p:hover .reply-btn {
  display: inline-block;
}
.reply > div.reply-content:hover .delete-btn, .sub-reply > div:hover .delete-btn, .comment-info .text p:hover .delete-btn {
  display: inline-block;
} */
/* .comment-info:hover .reply-btn, .comment-info:hover .delete-btn{
  display: inline-block;
} */
.images {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  position: relative;
  width: 100%;
  overflow: hidden;
}
.images > img{
  width: 33%;
  max-width: 300px;
  max-height: 300px;
  object-fit: cover;
}
.show-all {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 30px;
}
.delete-news {
  cursor: pointer;
  margin: 20px;
}
.img-preview {
  padding: 20px;
}
.img-preview > div {
  display: flex;
}
.img-preview p {
  margin-right: 30px;
}
.img-preview .cancel-upload {
  cursor: pointer;
  color: rgb(255, 72, 72);
}
.load-all-image {
  width: 100%;
  text-align: center;
  padding: 5px;
  cursor: pointer;
}
.load-all-text {
  margin-left: 6px;
  cursor: pointer;
}
.select-img {
  position: relative;
}
.select-img {
  display: flex;
  justify-content: space-between;
}
.select-img input[type='file'], .change-icon input[type='file'] {
  position: absolute;
  top: 0;
  left: 0;
  width: 84px;
  height: 36px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}